// 云对象教程: https://uniapp.dcloud.net.cn/uniCloud/cloud-obj
// jsdoc语法提示教程：https://ask.dcloud.net.cn/docs/#//ask.dcloud.net.cn/article/129
const db = uniCloud.database();
const dbCmd = db.command;
module.exports = {
	_before: function () { // 通用预处理器

	},
	async demo(){
		let res = await db.collection("uni-id-users").where({
			dcloud_appid:dbCmd.all(['__UNI__D19E802'])
		}).field({username:true,role:true}).count();
		return res.total;
	}
}
